﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TLCApp
{
    public partial class Rent01 : Form
    {
        bool flagLog = true;
        public Rent01()
        {
            InitializeComponent();

            Rent00 m_Rent00 = new Rent00();
            m_Rent00.StartPosition = FormStartPosition.CenterScreen;
            m_Rent00.ShowDialog(); ;

            if (m_Rent00.DialogResult == System.Windows.Forms.DialogResult.Yes)
            {
                flagLog = true;
                this.lblinfo.Text = "登陆信息： " + m_Rent00.strstutus;
            }
            else
            {
                flagLog = false;
           
            }
          
            
        }
        //登录画面
        private void Rent01_Load(object sender, EventArgs e)
        {
            if (flagLog == false)
            {
                this.Close();
            }
        }
        #region 系统设置
        //部门信息
        private void MI11_Click(object sender, EventArgs e)
        {
            Rent11  frmNew = new  Rent11();
            frmNew.MdiParent = this;
            frmNew.Show();
        }
        //人员信息
        private void MI12_Click(object sender, EventArgs e)
        {
            Rent12 frmNew = new Rent12();
            frmNew.MdiParent = this;
            frmNew.Show();
        }
        //人员权限
        private void MI13_Click(object sender, EventArgs e)
        {
            Rent_JSQX frmNew = new Rent_JSQX();
            frmNew.Show();
        }
        //修改密码
        private void MI14_Click(object sender, EventArgs e)
        {
            Rent14 frmNew = new Rent14();
            frmNew.Show();
        }
        #endregion

        #region 合同管理
        //客户资料
        private void MI21_Click(object sender, EventArgs e)
        {
            Rent21 frmNew = new Rent21();
            frmNew.Show();
        }
        //租赁合同
        private void MI22_Click(object sender, EventArgs e)
        {
            Rent22 frmNew = new Rent22();
            frmNew.Show();
        }

        //设计资料录入
        private void MI23_Click(object sender, EventArgs e)
        {
            Rent23 frmNew = new Rent23();
            frmNew.Show();
        }
        //结清合同
        private void MI24_Click(object sender, EventArgs e)
        {
            Rent24 frmNew = new Rent24();
            frmNew.Show();
        }
        //到期合同清单
        private void MI25_Click(object sender, EventArgs e)
        {
            Rent25 frmNew = new Rent25();
            frmNew.Show();
        }
        //到期未提货合同清单
        private void MI26_Click(object sender, EventArgs e)
        {
            Rent26 frmNew = new Rent26();
            frmNew.Show();
        }
        #endregion

        #region 收发管理
        private void MI31_Click(object sender, EventArgs e)
        {
            Rent31 frmNew = new Rent31();
            frmNew.Show();
        }

        private void MI32_Click(object sender, EventArgs e)
        {
            Rent32 frmNew = new Rent32();
            frmNew.Show();
        }

        private void MI33_Click(object sender, EventArgs e)
        {
            Rent33 frmNew = new Rent33();
            frmNew.Show();
        }
        #endregion

        #region 结算管理
        private void MI41_Click(object sender, EventArgs e)
        {
            Rent41 frmNew = new Rent41();
            frmNew.Show();
        }

        private void MI42_Click(object sender, EventArgs e)
        {
            Rent42 frmNew = new Rent42();
            frmNew.Show();
        }

        private void MI43_Click(object sender, EventArgs e)
        {
            Rent43 frmNew = new Rent43();
            frmNew.Show();
        }

        private void MI44_Click(object sender, EventArgs e)
        {
            Rent44 frmNew = new Rent44();
            frmNew.Show();
        }

        private void MI45_Click(object sender, EventArgs e)
        {
            Rent45 frmNew = new Rent45();
            frmNew.Show();
        }

        private void MI46_Click(object sender, EventArgs e)
        {
            Rent46 frmNew = new Rent46();
            frmNew.Show();
        }

        private void MI47_Click(object sender, EventArgs e)
        {
            Rent47 frmNew = new Rent47();
            frmNew.Show();
        }

        private void MI48_Click(object sender, EventArgs e)
        {
            Rent48 frmNew = new Rent48();
            frmNew.Show();
        }

        private void MI49_Click(object sender, EventArgs e)
        {
            Rent49 frmNew = new Rent49();
            frmNew.Show();
        }

        private void MI4A_Click(object sender, EventArgs e)
        {

            Rent4A frmNew = new Rent4A();
            frmNew.Show();
        }

        private void MI4B_Click(object sender, EventArgs e)
        {
            Rent4B frmNew = new Rent4B();
            frmNew.Show();
        }
        #endregion

        #region 库存管理
        //库位-仓库信息
        private void MI511_Click(object sender, EventArgs e)
        {
            TLCApp.storage frmNew = new TLCApp.storage();
            frmNew.StartPosition = FormStartPosition.CenterScreen;
            frmNew.Show();
        }
        ////库位-库位信息
        //private void MI512_Click(object sender, EventArgs e)
        //{
        //    TClStock.storagekw frmNew = new TClStock.storagekw();
        //    frmNew.Show();
        //}
        //成品-仓库清单
        private void MI521_Click(object sender, EventArgs e)
        {
            // --0成品库, 1半成品 2,配件,3 材料
            TLCApp.stk_scrkcx frmNew = new TLCApp.stk_scrkcx("0", "0");
            frmNew.MdiParent = this;
            frmNew.StartPosition = FormStartPosition.CenterScreen;
            frmNew.WindowState = FormWindowState.Maximized;
            frmNew.Text = "成品清单入库";
            frmNew.Show();
        }
        //成品-生产入库单
        private void MI522_Click(object sender, EventArgs e)
        {
              // --0成品库, 1半成品 2,配件,3 材料
            TLCApp.stk_scrkcx frmNew = new TLCApp.stk_scrkcx("1", "0");
            frmNew.MdiParent = this;
            frmNew.StartPosition = FormStartPosition.CenterScreen;
            frmNew.WindowState = FormWindowState.Maximized;
            frmNew.Text = "成品生产入库单";
            frmNew.Show();
        }
        /// <summary>
        ///c成品入库查询
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MI525_Click(object sender, EventArgs e)
        {
            // --0成品库, 1半成品 2,配件,3 材料
            TLCApp.stk_scrkcx frmNew = new TLCApp.stk_scrkcx("", "0");
            frmNew.MdiParent = this;
            frmNew._Readonlyvisable = false;
            frmNew.StartPosition = FormStartPosition.CenterScreen;
            frmNew.WindowState = FormWindowState.Maximized;
            frmNew.Text = "成品生产入库查询";
            frmNew.Show();
        }

        //成品-库存查询
        private void MI524_Click(object sender, EventArgs e)
        {
            TClStock.stk_data frmNew = new TClStock.stk_data();
            frmNew.Show();
        }

        //半成品-仓库清单
        private void MI531_Click(object sender, EventArgs e)
        {
            // --0成品库, 1半成品 2,配件,3 材料
            TLCApp.stk_scrkcx frmNew = new TLCApp.stk_scrkcx("0", "1");
            frmNew.MdiParent = this;
            frmNew.StartPosition = FormStartPosition.CenterScreen;
            frmNew.WindowState = FormWindowState.Maximized;
            frmNew.Text = "半成品清单入库";
            frmNew.Show();
        }


        //半成品-生产入库单
        private void MI532_Click(object sender, EventArgs e)
        {
            // --0成品库, 1半成品 2,配件,3 材料
            TLCApp.stk_scrkcx frmNew = new TLCApp.stk_scrkcx("1", "1");
            frmNew.MdiParent = this;
            frmNew.StartPosition = FormStartPosition.CenterScreen;
            frmNew.WindowState = FormWindowState.Maximized;
            frmNew.Text = "半成品生产入库单";
            frmNew.Show();
        }

        //半成品-生 出产库单
        private void MI533_Click(object sender, EventArgs e)
        {

            // 出库类型：0 半成品出库：1配件出库 ，2发货出库
            // --0成品库, 1半成品 2,配件,3 材料
            TLCApp.stk_scckcx frmNew = new TLCApp.stk_scckcx("0", "1","1");
            frmNew.MdiParent = this;
            frmNew.StartPosition = FormStartPosition.CenterScreen;
            frmNew.WindowState = FormWindowState.Maximized;
            frmNew.Text = "半成品生产出库单";
            frmNew.Show();
        }
        private void MI540_Click(object sender, EventArgs e)
        {
            // 出库类型：0 半成品出库：1配件出库 ，2发货出库
            // --0成品库, 1半成品 2,配件,3 材料
            TLCApp.stk_scckcx frmNew = new TLCApp.stk_scckcx("0", "1", "1");
            frmNew.MdiParent = this;
            frmNew.StartPosition = FormStartPosition.CenterScreen;
            frmNew.WindowState = FormWindowState.Maximized;
            frmNew.Text = "半成品合同生产出库单";
            frmNew.Show();
        }

        //半成品-库存移动
        private void MI534_Click(object sender, EventArgs e)
        {
            //TClStock.stk_Poschange frmNew = new TClStock.stk_Poschange();
            //frmNew.Show();
        }
        //半成品-库存盘点
        private void MI535_Click(object sender, EventArgs e)
        {
           // TClStock.stk_pchs frmNew = new TClStock.stk_pchs();
           // frmNew.Show();

        }
        //半成品-库存查询
        private void MI536_Click(object sender, EventArgs e)
        {
            TClStock.stk_data frmNew = new TClStock.stk_data();
            frmNew.Show();
        }

        //配件-仓库清单
        private void MI541_Click(object sender, EventArgs e)
        {
            //TClStock.stk_data frmNew = new TClStock.stk_data();
            //frmNew.Show();
        }
        //配件-入库单
        private void MI542_Click(object sender, EventArgs e)
        {
            TClStock.stk_cgrk frmNew = new TClStock.stk_cgrk();
            frmNew.Show();
        }
        //配件-出库单
        private void MI543_Click(object sender, EventArgs e)
        {
            //TLCApp.stk_scck frmNew = new TLCApp.stk_scck();
            //frmNew.Show();
        }
        //配件-库存盘点
        private void MI544_Click(object sender, EventArgs e)
        {

        }
        //配件-库存查询
        private void MI545_Click(object sender, EventArgs e)
        {

        }





        #endregion

        #region 基础数据
        //材料分类
        private void MI61_Click(object sender, EventArgs e)
        {
            Rent61 frmNew = new Rent61();
            frmNew.Show();
        }

        //材料代码表
        private void MI62_Click(object sender, EventArgs e)
        {
            Rent62 frmNew = new Rent62();
            frmNew.Show();
        }

        private void MI63_Click(object sender, EventArgs e)
        {

        }

        //计量单位
        private void MI64_Click(object sender, EventArgs e)
        {
            Rent64 frmNew = new Rent64();
            frmNew.Show();
        }

        //收费方式
        private void MI65_Click(object sender, EventArgs e)
        {
            Rent65 frmNew = new Rent65();
            frmNew.Show();
        }
        //核算方式
        private void MI66_Click(object sender, EventArgs e)
        {
            Rent66 frmNew = new Rent66();
            frmNew.Show();
        }

        //数据字典维护
        private void MI67_Click(object sender, EventArgs e)
        {
            Rent67 frmNew = new Rent67();
            frmNew.Show();
        }
        #endregion
        #region 材料库管理
        private void MI551_Click(object sender, EventArgs e)
        {

        }
        #endregion


       

        private void menuItem4_Click(object sender, EventArgs e)
        {

        }

        private void menuItem6_Click(object sender, EventArgs e)
        {

        }

     
      



























    }
}
